package com.example.mygrade.service.impl;

import com.example.mygrade.domain.SubjectStatic;
import com.example.mygrade.repository.SubjectStaticRepository;
import com.example.mygrade.service.SubjectStaticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SubjectStaticImplService implements SubjectStaticService {
    @Autowired
    private SubjectStaticRepository subjectStaticRepository;

    public List<SubjectStatic> findAll(){
        return subjectStaticRepository.findAll();
    }

    public List<SubjectStatic> findByMidAndGradeidAndClassidAndCname(String mid, Integer gradeid, Integer classid, String cname){
        return subjectStaticRepository.findByMidAndGradeidAndClassidAndCname(mid,gradeid,classid,cname);
    }

}
